package com.example.library.service;

import com.example.library.entity.Borrowing;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sx
 * @since 2024-12-17
 */
public interface IBorrowingService extends IService<Borrowing> {

    boolean returnBook(Integer userId, Integer bookId);

    Borrowing getActiveBorrowing(Integer userId, Integer bookId);

    boolean borrowBook(Integer userId, Integer bookId);

}
